import axios from '@/libs/api.request'

export const getTableData = () => {
  return axios.request({
    url: 'get_table_data',
    method: 'get'
  })
}
export const getDragList = () => {
  return axios.request({
    url: 'get_drag_list',
    method: 'get'
  })
}
export const errorReq = () => {
  return axios.request({
    url: 'error_url'
  })
}
export const saveErrorLogger = info => {
  return axios.request({
    url: 'save_error_logger',
    data: info
  })
}
// 开始
export const upload = formData => {
  return axios.request({
    url: '/uploadImgs/upload',
    data: formData
  })
}
export const uploadImg = formData => {
  return axios.request({
    url: '/uploadImgs/uploadImg',
    data: formData
  })
}
export const adminL = info => {
  return axios.request({
    url: 'admin/list4Page',
    data: info
  })
}
export const adminD = info => {
  return axios.request({
    url: 'admin/delete',
    data: info
  })
}
export const adminB = info => {
  return axios.request({
    url: 'admin/listByCondition',
    data: info
  })
}
export const adminQ = info => {
  return axios.request({
    url: 'admin/queryOneByPk',
    data: info
  })
}
export const adminS = info => {
  return axios.request({
    url: 'admin/save',
    data: info
  })
}
export const userD = info => {
  return axios.request({
    url: 'user/delete',
    data: info
  })
}
export const userDeposit = info => {
  return axios.request({
    url: 'user/deposit',
    data: info
  })
}
export const userL = info => {
  return axios.request({
    url: 'user/list4Page',
    data: info
  })
}
export const userB = info => {
  return axios.request({
    url: 'user/listByCondition',
    data: info
  })
}
export const userQ = info => {
  return axios.request({
    url: 'user/queryOneByPk',
    data: info
  })
}
export const userS = info => {
  return axios.request({
    url: 'user/save',
    data: info
  })
}
export const businessD = info => {
  return axios.request({
    url: 'business/delete',
    data: info
  })
}
export const businessQ = info => {
  return axios.request({
    url: 'business/genQR',
    data: info
  })
}
export const businessL = info => {
  return axios.request({
    url: 'business/list4Page',
    data: info
  })
}
export const businessB = info => {
  return axios.request({
    url: 'business/listByCondition',
    data: info
  })
}
export const businessS = info => {
  return axios.request({
    url: 'business/save',
    data: info
  })
}
export const areaD = info => {
  return axios.request({
    url: 'area/delete',
    data: info
  })
}
export const areaG = info => {
  return axios.request({
    url: 'area/getAreaTree',
    data: info
  })
}
export const areaB = info => {
  return axios.request({
    url: 'area/listByCondition',
    data: info
  })
}
export const areaS = info => {
  return axios.request({
    url: 'area/save',
    data: info
  })
}
export const goodsAssessD = info => {
  return axios.request({
    url: 'goodsAssess/delete',
    data: info
  })
}
export const goodsAssessL = info => {
  return axios.request({
    url: 'goodsAssess/list4Page',
    data: info
  })
}
export const goodsAssessB = info => {
  return axios.request({
    url: 'goodsAssess/listByCondition',
    data: info
  })
}
export const goodsAssessS = info => {
  return axios.request({
    url: 'goodsAssess/save',
    data: info
  })
}
export const goodsD = info => {
  return axios.request({
    url: 'goods/delete',
    data: info
  })
}
export const goodsL = info => {
  return axios.request({
    url: 'goods/list4Page',
    data: info
  })
}
export const goodsB = info => {
  return axios.request({
    url: 'goods/listByCondition',
    data: info
  })
}
export const goodsS = info => {
  return axios.request({
    url: 'goods/save',
    data: info
  })
}
export const resLeaseD = info => {
  return axios.request({
    url: 'resLease/delete',
    data: info
  })
}
export const resLeaseL = info => {
  return axios.request({
    url: 'resLease/list4Page',
    data: info
  })
}
export const resLeaseB = info => {
  return axios.request({
    url: 'resLease/listByCondition',
    data: info
  })
}
export const resLeaseA = info => {
  return axios.request({
    url: 'resLease/lease',
    data: info
  })
}
export const resLeaseK = info => {
  return axios.request({
    url: 'resLease/back',
    data: info
  })
}
export const couponD = info => {
  return axios.request({
    url: 'coupon/delete',
    data: info
  })
}
export const couponL = info => {
  return axios.request({
    url: 'coupon/list4Page',
    data: info
  })
}
export const couponB = info => {
  return axios.request({
    url: 'coupon/listByCondition',
    data: info
  })
}
export const couponS = info => {
  return axios.request({
    url: 'coupon/save',
    data: info
  })
}
export const typeD = info => {
  return axios.request({
    url: 'type/delete',
    data: info
  })
}
export const typeL = info => {
  return axios.request({
    url: 'type/list4Page',
    data: info
  })
}
export const typeB = info => {
  return axios.request({
    url: 'type/listByCondition',
    data: info
  })
}
export const typeS = info => {
  return axios.request({
    url: 'type/save',
    data: info
  })
}
export const userLoginLogD = info => {
  return axios.request({
    url: 'userLoginLog/delete',
    data: info
  })
}
export const userLoginLogL = info => {
  return axios.request({
    url: 'userLoginLog/list4Page',
    data: info
  })
}
export const userLoginLogB = info => {
  return axios.request({
    url: 'userLoginLog/listByCondition',
    data: info
  })
}
export const userLoginLogQ = info => {
  return axios.request({
    url: 'userLoginLog/queryOneByPk',
    data: info
  })
}
export const userLoginLogS = info => {
  return axios.request({
    url: 'userLoginLog/save',
    data: info
  })
}
export const userCouponD = info => {
  return axios.request({
    url: 'userCoupon/delete',
    data: info
  })
}
export const userCouponL = info => {
  return axios.request({
    url: 'userCoupon/list4Page',
    data: info
  })
}
export const userCouponList = info => {
  return axios.request({
    url: 'userCoupon/listBus4Page',
    data: info
  })
}
export const userCouponDetailList = info => {
  return axios.request({
    url: 'userCoupon/list4Page',
    data: info
  })
}
export const userCouponB = info => {
  return axios.request({
    url: 'userCoupon/listByCondition',
    data: info
  })
}

export const userCouponQ = info => {
  return axios.request({
    url: 'userCoupon/queryOneByPk',
    data: info
  })
}
export const userCouponS = info => {
  return axios.request({
    url: 'userCoupon/save',
    data: info
  })
}
export const userOrderD = info => {
  return axios.request({
    url: 'userOrder/delete',
    data: info
  })
}
export const userOrderL = info => {
  return axios.request({
    url: 'userOrder/list4Page',
    data: info
  })
}
export const userOrderB = info => {
  return axios.request({
    url: 'userOrder/listByCondition',
    data: info
  })
}
export const userOrderQ = info => {
  return axios.request({
    url: 'userOrder/queryOneByPk',
    data: info
  })
}
export const userOrderS = info => {
  return axios.request({
    url: 'userOrder/save',
    data: info
  })
}
export const roleB = info => {
  return axios.request({
    url: 'role/listByCondition',
    data: info
  })
}
export const roleS = info => {
  return axios.request({
    url: 'role/save',
    data: info
  })
}
export const userDepositD = info => {
  return axios.request({
    url: 'userDeposit/delete',
    data: info
  })
}
export const userDepositL = info => {
  return axios.request({
    url: 'userDeposit/list4Page',
    data: info
  })
}
export const userDepositB = info => {
  return axios.request({
    url: 'userDeposit/listByCondition',
    data: info
  })
}
export const userDepositQ = info => {
  return axios.request({
    url: 'userDeposit/queryOneByPk',
    data: info
  })
}
export const userDepositS = info => {
  return axios.request({
    url: 'userDeposit/save',
    data: info
  })
}
export const userDepositLogD = info => {
  return axios.request({
    url: 'userDepositLog/delete',
    data: info
  })
}
export const userDepositLogL = info => {
  return axios.request({
    url: 'userDepositLog/list4Page',
    data: info
  })
}
export const userDepositLogB = info => {
  return axios.request({
    url: 'userDepositLog/listByCondition',
    data: info
  })
}
export const userDepositLogQ = info => {
  return axios.request({
    url: 'userDepositLog/queryOneByPk',
    data: info
  })
}
export const userDepositLogS = info => {
  return axios.request({
    url: 'userDepositLog/save',
    data: info
  })
}
export const leaseResD = info => {
  return axios.request({
    url: 'leaseRes/delete',
    data: info
  })
}
export const leaseResL = info => {
  return axios.request({
    url: 'leaseRes/list4Page',
    data: info
  })
}
export const leaseResB = info => {
  return axios.request({
    url: 'leaseRes/listByCondition',
    data: info
  })
}
export const leaseResQ = info => {
  return axios.request({
    url: 'leaseRes/queryOneByPk',
    data: info
  })
}
export const leaseResS = info => {
  return axios.request({
    url: 'leaseRes/save',
    data: info
  })
}
export const leaseResDetailL = info => {
  return axios.request({
    url: 'leaseResDetail/listByCondition',
    data: info
  })
}
export const leaseResDetailD = info => {
  return axios.request({
    url: 'leaseResDetail/delete',
    data: info
  })
}
export const leaseResDetailS = info => {
  return axios.request({
    url: 'leaseResDetail/save',
    data: info
  })
}
export const agree = info => {
  return axios.request({
    url: 'resLease/lease',
    data: info
  })
}
export const queryCost = info => {
  return axios.request({
    url: 'resLease/queryCost',
    data: info
  })
}
export const getAllStores = info => {
  return axios.request({
    url: 'business/listByCondition',
    data: info
  })
}
export const getAllGoods = info => {
  return axios.request({
    url: 'goods/listByCondition',
    data: info
  })
}
export const getAllCoupon = info => {
  return axios.request({
    url: 'coupon/listByCondition',
    data: info
  })
}
export const saveActivity = info => {
  return axios.request({
    url: 'activity/save',
    data: info
  })
}
export const getAllActivity = info => {
  return axios.request({
    url: 'activity/list4Page',
    data: info
  })
}
export const deleteActivity = info => {
  return axios.request({
    url: 'activity/delete',
    data: info
  })
}
export const addBanner = info => {
  return axios.request({
    url: 'banner/save',
    data: info
  })
}
export const getBanner = info => {
  return axios.request({
    url: 'banner/list4Page',
    data: info
  })
}
export const deleteBanner = info => {
  return axios.request({
    url: 'banner/delete',
    data: info
  })
}

export const dictQuery = info => {
  return axios.request({
    url: 'dict/query',
    data: info
  })
}
export const dictSave = info => {
  return axios.request({
    url: 'dict/save',
    data: info
  })
}
